<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	{{include file="../Common/header.html"}}
	<link rel="stylesheet" href="Public/Home/Css/question.css" />
	<script type="text/javascript" src="Public/Home/Js/question.js"></script>
<!-- top 结束-->
	<div id='location'>
		<a href="./index.php?c=List">全部分类</a>
		{{section loop=$fatherCate name=n}}
			{{if $smatry.section.n.last}}
			&gt;&nbsp;{{$fathserCate[n].title}}&nbsp;&nbsp;
			{{else}}
			&gt;&nbsp;<a href="./index.php?c=List&cid={{$fatherCate[n].cid}}">{{$fatherCate[n].title}}</a>&nbsp;&nbsp;
			{{/if}}
		{{/section}}
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state {{if $askData.solve==0}} wait {{/if}}'></div>
					<div class='answer'>
						<p class='ans-title'>{{$askData.content}}
							<b class='point'>{{$askData.reward}}</b>
						</p>
					</div>
					<ul>
						<li><a href="">{{$askData.username}}</a></li>
						<li><i class='level lv{{$askData.lv}}' title='Level {{$askData.lv}}'></i></li>
						<li>{{$askData.time|date_format:"%Y-%m-%d"}}</li>
					</ul>
					<!--1.必须登陆，2.必须没有被解决，3.必须不是自己的问题-->
					{{if $smarty.session.uid && $smarty.session.uname && $askData.username!=$smarty.session.uname && $askData.solve==0}}
					<div class='ianswer'>
						<form action="./index.php?c=Ask&a=answer&asid={{$askData.asid}}&cid={{$askData.cid}}&uid={{$smarty.session.uid}}" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='qid' value=''>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
					{{/if}}
					<!-- 满意回答 -->
					
					{{section loop=$satisfy name=n}}
					{{if $smarty.section.n}}
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'>{{$satisfy[n].content}}</p>
						<dl>
							<dt>
								<a href=""><img src="{{$satisfy[n].face}}" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="">{{$satisfy[n].username}}</a>
							</dd>
							<dd><i class='level lv{{$satisfy[n].lv}}'></i></dd>
							<dd>{{$satisfy[n].c}}</dd>
						</dl>
					</div>
								
					{{/if}}
					{{/section}}
					<!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong>{{$countQues.c}}</strong> 条回答</p>
					<ul>
						{{foreach from=$questionData item=q}}
						<li>
							<div class='face'>
								<a href="">
									<img src="{{$q.face}}" width='48' height='48' alt=''/>
								</a>
							</div>
							<div class='cons blue'>
								<p>{{$q.content}}<span style='color:#888;font-size:12px'>&nbsp;&nbsp;({{$q.time|date_format:"%Y-%m-%d"}})</span></p>
							</div>
							<!--如果登录的用户和提问问题的用户不同的话就不能显示采纳按钮-->
							{{if $askUser.uid==$smarty.session.uid && $q.accept==0 && $askUser.username==$smarty.session.uname}}
								<!--1.必须登陆 2.必须没有被解决 3.必须是自己的问题，同时满足3个条件才可以出来-->
								
								<a href="./index.php?c=Ask&a=accept&anid={{$q.anid}}&asid={{$q.asid}}&uid={{$q.uid}}&user={{$askData.uid}}" class='adopt-btn'>采纳</a>
							{{/if}}
						</li>
						{{/foreach}}
						
					</ul>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						{{foreach from=$about item=a}}
						<tr>
							<td class='t1'><a href="./index.php?c=Ask&cid={{$a.cid}}&asid={{$a.asid}}">{{$a.content}}</a></td>
							<td>{{$a.answer}}&nbsp;回答</td>
							<td>{{$a.time|date_format:"%Y-%m-%d"}}</td>
						</tr>
						{{/foreach}}
					</table>
				</div>
			</div>
		{{include file="../Common/right.html"}}
<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="Public/Home/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->